package archsw0904.controller.shopping.order;

public class ConfirmOrderBeanProxy implements archsw0904.controller.shopping.order.ConfirmOrderBean {
  private String _endpoint = null;
  private archsw0904.controller.shopping.order.ConfirmOrderBean confirmOrderBean = null;
  
  public ConfirmOrderBeanProxy() {
    _initConfirmOrderBeanProxy();
  }
  
  public ConfirmOrderBeanProxy(String endpoint) {
    _endpoint = endpoint;
    _initConfirmOrderBeanProxy();
  }
  
  private void _initConfirmOrderBeanProxy() {
    try {
      confirmOrderBean = (new archsw0904.controller.shopping.order.ConfirmOrderBeanServiceLocator()).getConfirmOrderBeanPort();
      if (confirmOrderBean != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)confirmOrderBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)confirmOrderBean)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (confirmOrderBean != null)
      ((javax.xml.rpc.Stub)confirmOrderBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public archsw0904.controller.shopping.order.ConfirmOrderBean getConfirmOrderBean() {
    if (confirmOrderBean == null)
      _initConfirmOrderBeanProxy();
    return confirmOrderBean;
  }
  
  public void setOrderPaymentStatus(java.lang.Integer arg0, java.lang.Boolean arg1) throws java.rmi.RemoteException, archsw0904.controller.shopping.order.OrderException{
    if (confirmOrderBean == null)
      _initConfirmOrderBeanProxy();
    confirmOrderBean.setOrderPaymentStatus(arg0, arg1);
  }
  
  
}